RegistryPolicy.WriteMultiStringValue Method (RegistryHive, String, String, String[])

 

Writes a registry-based policy setting that configures a MultiString registry value.

Namespace:   Microsoft.GroupPolicy
Assembly:  Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)

Syntax

public void WriteMultiStringValue(
    RegistryHive hive,
    string keyPath,
    string valueName,
    string[] value
)
public:
void WriteMultiStringValue(
    RegistryHive hive,
    String^ keyPath,
    String^ valueName,
    array<String^>^ value
)
member WriteMultiStringValue : 
        hive:RegistryHive *
        keyPath:string *
        valueName:string *
        value:string[] -> unit
Public Sub WriteMultiStringValue (
    hive As RegistryHive,
    keyPath As String,
    valueName As String,
    value As String()
)

Parameters

  • valueName
    Type: System.String

    The name of the registry value. You can specify an empty string (“”) for the default value.

  • value
    Type: System.String[]

    An array of strings that contains the value data.

Exceptions

Exception Condition
ObjectDisposedException

The RegistryPolicy is disposed.

InvalidOperationException

The RegistryPolicy instance is read-only.

ArgumentNullException

keyPath is null or value is null

ArgumentException

keyPath is an empty string (“”)

-or-

hive is not CurrentUser or LocalMachine

See Also

RegistryPolicy Class
Microsoft.GroupPolicy Namespace

Return to top